C:\wamp\www\phpld 4.2.1\PhpLD\templates\Professional\top_bar.tpl
C:\wamp\www\phpld42\PhpLD\templates\Professional\top_bar.tpl
  1 {strip}
  2 <div class="hMenuContainer">
  3     <div class="center">
  4         <div class="hMenu">
  5                     <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
  6             <a href="{$smarty.const.DOC_ROOT}/submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your link to the directory{/l}">{l}Submit Link{/l}</a>
  7             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
  8             <a href="{$smarty.const.DOC_ROOT}/submit_article.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your article to the directory{/l}">{l}Submit Article{/l}</a>
  9             
 10             <img  width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 11             <a href="{$smarty.const.DOC_ROOT}/index.php?list=latest" title="{l}Browse latest submitted links{/l}">{l}Latest Links{/l}</a>
 12             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 13             <a href="{$smarty.const.DOC_ROOT}/index.php?list=latestarticles" title="{l}Browse latest articles{/l}">{l}Latest Articles{/l}</a>
 14             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 15             <a href="{$smarty.const.DOC_ROOT}/index.php?list=top" title="{l}Browse most popular links{/l}">{l}Top Hits{/l}</a>
 16             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 17             <a href="{$smarty.const.DOC_ROOT}/contact.php" title="{l}Contact directory owner{/l}">{l}Contact{/l}</a>
 18                         <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 19             <a href="{$smarty.const.DOC_ROOT}/search.php?type=advanced" title="{l}Go to advanced search page{/l}" accesskey="4" rel="nofollow">{l}Advanced Search{/l}</a>
 20              {* RSS feed icon *}
 21       {if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID > 0  or $list)}
 22                 <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 23                 <a href="{$smarty.const.DOC_ROOT}/rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $list}list={$list}{else}c={$category.ID}{/if}{if $sort}&amp;s={$sort}{/if}{if $p}&amp;p={$p}{/if}">{l}RSS{/l}</a>
 24             {/if}
 25             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 26             
 27              
 28         </div>
 29     </div>
 30 </div>
 31 
 32 {* Display current path *}
 33 <div class="path">
 34 {if $path|@count > 1}
 35     {assign var="current_path" value=""}
 36     {foreach from=$path item=cat name=path}
 37        {assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
 38        {if !$smarty.foreach.path.first} <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/pathArrow.gif" alt=" - " /> {/if}
 39        {if !$smarty.foreach.path.last}
 40           <a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else}index.php?c={$cat.ID}{/if}" {if $smarty.foreach.path.first}style="font-weight: bold;"{/if}>{$cat.TITLE|escape|trim}</a>
 41        {else}
 42           {$cat.TITLE|escape|trim}
 43        {/if}
 44     {/foreach}
 45 {/if}
 46 </div>
 47 
 48 
 49 <div class="center1">
 50 
 51     {include file="left_side.tpl"}
 52 
 53         <div class="centerContainer">
 54         <div class="centerContainerT"></div>  
 55         <div class="centerContainerM">
 56 <ul id="main_container" style="list-style-type: none; padding: 0px; margin: 0;">
 57 <li>
 58         {if !$uid & !$search & empty($category.ID) & !$list & $scriptname == "index"}
 59         {foreach from=$widgets.MAIN_ON_HOMEPAGE.TOP item=v}
 60             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 61             {include file="widget_central_top.tpl" TITLE=$v.SETTINGS.TITLE}
 62             {/if}
 63             {$v.CONTENT}
 64             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 65             {include file="widget_central_bot.tpl"}
 66             {/if}
 67         {/foreach}
 68         {else}
 69         {foreach from=$widgets.MAIN_NOT_ON_HOMEPAGE.TOP item=v}
 70             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 71             {include file="widget_vertical_top.tpl"}
 72             {/if}
 73             {$v.CONTENT}
 74             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 75             {include file="widget_vertical_bot.tpl"}
 76             {/if}
 77         {/foreach}
 78         {/if}
 79 </li>
 80 </ul>
 81 {/strip}
 82 
 83 {if $uLevel eq 1}
 84 {literal}
 85 <style type="text/css">
 86     .placeholder {
 87         border: 1px solid #FCEFA1;
 88         background: #FDFADF; 
 89         color: #363636;
 90         width: 187px;
 91         height: 60px;
 92         margin: 14px;
 93     }
 94     
 95     .placeholder_central {
 96         border: 1px solid #FCEFA1;
 97         background: #FDFADF; 
 98         color: #363636;
 99         width: 496px;
100         height: 60px;
101         margin: 16px;
102     }
103 </style>
104 
105 <script type="text/javascript">
106 
    
    
107         jQuery("#sortable_left").sortable({
108             placeholder: "placeholder",
109             connectWith: "#sortable_right",
110             opacity: 0.6,
111             cursor: "move",
112             stop: function() {
113                 var left_hash = '';
114                 var right_hash = '';
115                 jQuery('#sortable_left li').each(function(i){
116                     if ($(this).attr('id'))
117                     left_hash += $(this).attr('id') + ',';
118                 });
119                 jQuery('#sortable_right li').each(function(i){
120                     if ($(this).attr('id'))
121                     right_hash += $(this).attr('id') + ',';
122                 });
123                 jQuery.ajax({
124                     url: "{/literal}{$smarty.const.DOC_ROOT}{literal}/admin/frontend_edit_widget.php",
125                     cache: false,
126                     data: {
127                         action: "ORDER",
128                         left_hash: left_hash,
129                         right_hash: right_hash,
130                         zone: "left"
131                     },
132                 });
133             }
134         });
135         
136         jQuery("#sortable_right").sortable({
137             placeholder: "placeholder",
138             connectWith: "#sortable_left",
139             opacity: 0.6,
140             cursor: "move",
141             stop: function() {
142                 var left_hash = '';
143                 var right_hash = '';
144                 jQuery('#sortable_left li').each(function(i){
145                     if ($(this).attr('id'))
146                     left_hash += $(this).attr('id') + ',';
147                 });
148                 jQuery('#sortable_right li').each(function(i){
149                     if ($(this).attr('id'))
150                     right_hash += $(this).attr('id') + ',';
151                 });
152                 jQuery.ajax({
153                     url: "{/literal}{$smarty.const.DOC_ROOT}{literal}/admin/frontend_edit_widget.php",
154                     cache: false,
155                     data: {
156                         action: "ORDER",
157                         left_hash: left_hash,
158                         right_hash: right_hash,
159                         zone: "left"
160                     },
161                 });
162             }
163         });
164         
165         jQuery("#sortable_central").sortable({
166             placeholder: "placeholder_central",
167             connectWith: "#main_container",
168             opacity: 0.6,
169             cursor: "move",
170             stop: function() {
171                 var central_hash = '';
172                 jQuery('#sortable_central li').each(function(i){
173                     if ($(this).attr('id'))
174                     central_hash += $(this).attr('id') + ',';
175                 });
176                 jQuery.ajax({
177                     url: "{/literal}{$smarty.const.DOC_ROOT}{literal}/admin/frontend_edit_widget.php",
178                     cache: false,
179                     data: {
180                         action: "ORDER",
181                         central_hash: central_hash
182                     },
183                 });
184             }
185         }); 
    
    
186 
187 </script>
188 {/literal}
189 
190 {/if}
  1 {strip}
  2 <div class="hMenuContainer">
  3     <div class="center">
  4         <div class="hMenu">
  5                     <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
  6             <a href="{$smarty.const.DOC_ROOT}/submit.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your link to the directory{/l}">{l}Submit Link{/l}</a>
  7             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
  8             <a href="{$smarty.const.DOC_ROOT}/submit_article.php{if !empty ($category.ID) and $category.ID > 0}?c={$category.ID}{/if}" title="{l}Submit your article to the directory{/l}">{l}Submit Article{/l}</a>
  9             
 10             <img  width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 11             <a href="{$smarty.const.DOC_ROOT}/index.php?list=latest" title="{l}Browse latest submitted links{/l}">{l}Latest Links{/l}</a>
 12             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 13             <a href="{$smarty.const.DOC_ROOT}/index.php?list=latestarticles" title="{l}Browse latest articles{/l}">{l}Latest Articles{/l}</a>
 14             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 15             <a href="{$smarty.const.DOC_ROOT}/index.php?list=top" title="{l}Browse most popular links{/l}">{l}Top Hits{/l}</a>
 16             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 17             <a href="{$smarty.const.DOC_ROOT}/contact.php" title="{l}Contact directory owner{/l}">{l}Contact{/l}</a>
 18                         <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 19             <a href="{$smarty.const.DOC_ROOT}/search.php?type=advanced" title="{l}Go to advanced search page{/l}" accesskey="4" rel="nofollow">{l}Advanced Search{/l}</a>
 20              {* RSS feed icon *}
 21       {if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID > 0  or $list)}
 22                 <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 23                 <a href="{$smarty.const.DOC_ROOT}/rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $list}list={$list}{else}c={$category.ID}{/if}{if $sort}&amp;s={$sort}{/if}{if $p}&amp;p={$p}{/if}">{l}RSS{/l}</a>
 24             {/if}
 25             <img width="2" height="34" src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/hMenuSeparator.gif" alt="" />
 26             
 27              
 28         </div>
 29     </div>
 30 </div>
 31 
 32 {* Display current path *}
 33 <div class="path">
 34 {if $path|@count > 1}
 35     {assign var="current_path" value=""}
 36     {foreach from=$path item=cat name=path}
 37        {assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
 38        {if !$smarty.foreach.path.first} <img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/pathArrow.gif" alt=" - " /> {/if}
 39        {if !$smarty.foreach.path.last}
 40           <a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else}index.php?c={$cat.ID}{/if}" {if $smarty.foreach.path.first}style="font-weight: bold;"{/if}>{$cat.TITLE|escape|trim}</a>
 41        {else}
 42           {$cat.TITLE|escape|trim}
 43        {/if}
 44     {/foreach}
 45 {/if}
 46 </div>
 47 
 48 
 49 <div class="center1">
 50 
 51     {include file="left_side.tpl"}
 52 
 53         <div class="centerContainer">
 54         <div class="centerContainerT"></div>  
 55         <div class="centerContainerM">
 56 <ul id="main_container" style="list-style-type: none; padding: 0px; margin: 0;">
 57 <li>
 58         {if !$uid & !$search & empty($category.ID) & !$list & $scriptname == "index"}
 59         {foreach from=$widgets.MAIN_ON_HOMEPAGE.TOP item=v}
 60             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 61             {include file="widget_central_top.tpl" TITLE=$v.SETTINGS.TITLE}
 62             {/if}
 63             {$v.CONTENT}
 64             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 65             {include file="widget_central_bot.tpl"}
 66             {/if}
 67         {/foreach}
 68         {else}
 69         {foreach from=$widgets.MAIN_NOT_ON_HOMEPAGE.TOP item=v}
 70             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 71             {include file="widget_vertical_top.tpl"}
 72             {/if}
 73             {$v.CONTENT}
 74             {if $v.SETTINGS.DISPLAY_IN_BOX eq 'Yes'}
 75             {include file="widget_vertical_bot.tpl"}
 76             {/if}
 77         {/foreach}
 78         {/if}
 79 </li>
 80 </ul>
 81 {/strip}
 82 
 83 {if $uLevel eq 1}
 84 {literal}
 85 <style type="text/css">
 86     .placeholder {
 87         border: 1px solid #FCEFA1;
 88         background: #FDFADF; 
 89         color: #363636;
 90         width: 187px;
 91         height: 60px;
 92         margin: 14px;
 93     }
 94     
 95     .placeholder_central {
 96         border: 1px solid #FCEFA1;
 97         background: #FDFADF; 
 98         color: #363636;
 99         width: 496px;
100         height: 60px;
101         margin: 16px;
102     }
103 </style>
104 
105 <script type="text/javascript">
106 
107 jQuery(function($) {
108 
109         $("#sortable_left").sortable({
110             placeholder: "placeholder",
111             connectWith: "#sortable_right",
112             opacity: 0.6,
113             cursor: "move",
114             stop: function() {
115                 var left_hash = '';
116                 var right_hash = '';
117                 $('#sortable_left li').each(function(i){
118                     if ($(this).attr('id'))
119                     left_hash += $(this).attr('id') + ',';
120                 });
121                 $('#sortable_right li').each(function(i){
122                     if ($(this).attr('id'))
123                     right_hash += $(this).attr('id') + ',';
124                 });
125                 $.ajax({
126                     url: "{/literal}{$smarty.const.DOC_ROOT}{literal}/admin/frontend_edit_widget.php",
127                     cache: false,
128                     data: {
129                         action: "ORDER",
130                         left_hash: left_hash,
131                         right_hash: right_hash,
132                         zone: "left"
133                     },
134                 });
135             }
136         });
137         
138         $("#sortable_right").sortable({
139             placeholder: "placeholder",
140             connectWith: "#sortable_left",
141             opacity: 0.6,
142             cursor: "move",
143             stop: function() {
144                 var left_hash = '';
145                 var right_hash = '';
146                 $('#sortable_left li').each(function(i){
147                     if ($(this).attr('id'))
148                     left_hash += $(this).attr('id') + ',';
149                 });
150                 $('#sortable_right li').each(function(i){
151                     if ($(this).attr('id'))
152                     right_hash += $(this).attr('id') + ',';
153                 });
154                 $.ajax({
155                     url: "{/literal}{$smarty.const.DOC_ROOT}{literal}/admin/frontend_edit_widget.php",
156                     cache: false,
157                     data: {
158                         action: "ORDER",
159                         left_hash: left_hash,
160                         right_hash: right_hash,
161                         zone: "left"
162                     },
163                 });
164             }
165         });
166         
167         $("#sortable_central").sortable({
168             placeholder: "placeholder_central",
169             connectWith: "#main_container",
170             opacity: 0.6,
171             cursor: "move",
172             stop: function() {
173                 var central_hash = '';
174                 $('#sortable_central li').each(function(i){
175                     if ($(this).attr('id'))
176                     central_hash += $(this).attr('id') + ',';
177                 });
178                 $.ajax({
179                     url: "{/literal}{$smarty.const.DOC_ROOT}{literal}/admin/frontend_edit_widget.php",
180                     cache: false,
181                     data: {
182                         action: "ORDER",
183                         central_hash: central_hash
184                     },
185                 });
186             }
187         }); 
188 
189 });
190 
191 </script>
192 {/literal}
193 
194 {/if}
Legend:
Added(2,1)
Deleted(0,0)
Changed(13)
Changed in changed(11)